'use strict'
const db = uniCloud.database()
const $ = db.command.aggregate
const dbCmd = db.command
exports.main = async (event, context) => {
	const {
		user_id,
		feedbackImages=[],
		content = ''
	} = event
	 await db.collection("feedback").add({
		 user_id:user_id,
		 feedbackImages: feedbackImages,
		 content: content
	 })
	//返回数据给客户端
	return {
		code:200,
		messae:"数据更新成功"
	}
};
